<let/count = 0/>
<html-script type="importmap" onClick() { count++ }>
  {
    "imports": {
      "${count}": "https://markojs.com",
    }
  }
</html-script>
<div>${count}</div>
